// src/composables/useTheme.ts
import { onShow } from "@dcloudio/uni-app";

export function useTheme() {
  const colorStyle = ref("");

  function loadTheme() {
    colorStyle.value = uni.getStorageSync("viewColor");
    
  }
  
  onShow(() => {
    loadTheme();
  });

  return {
    colorStyle,
  };
}
